# D:\Python1\026\06-写入数据.py

# 打开文件
fo = open("写入测试.txt", "w")
print("文件名: ", fo.name)

str = "www.kazakhsoft.com"

# 写入数据
line = fo.write(str)

# 关闭文件
fo.close()
